package com.xuetang9.t9.xinhuaxia.beans;

import javax.persistence.*;

@Table(name = "receive_address")
public class ReceiveAddress {
    /**
     * 地址编号
     */
    @Id
    @Column(name = "ra_addressId")
    private Long raAddressid;

    /**
     * 用户ID
     */
    @Column(name = "ra_userId")
    private Long raUserid;

    /**
     * 省份
     */
    @Column(name = "ra_province")
    private String raProvince;

    /**
     * 市
     */
    @Column(name = "ra_city")
    private String raCity;

    /**
     * 详细地址
     */
    @Column(name = "ra_detailedAddress")
    private String raDetailedaddress;

    /**
     * 收件人
     */
    @Column(name = "ra_recipient")
    private String raRecipient;

    /**
     * 联系号码
     */
    @Column(name = "ra_phone")
    private Long raPhone;

    /**
     * 默认状态 0为默认 1非
     */
    @Column(name = "ra_defaultStatus")
    private Integer raDefaultstatus;

    /**
     * 获取地址编号
     *
     * @return ra_addressId - 地址编号
     */
    public Long getRaAddressid() {
        return raAddressid;
    }

    /**
     * 设置地址编号
     *
     * @param raAddressid 地址编号
     */
    public void setRaAddressid(Long raAddressid) {
        this.raAddressid = raAddressid;
    }

    /**
     * 获取用户ID
     *
     * @return ra_userId - 用户ID
     */
    public Long getRaUserid() {
        return raUserid;
    }

    /**
     * 设置用户ID
     *
     * @param raUserid 用户ID
     */
    public void setRaUserid(Long raUserid) {
        this.raUserid = raUserid;
    }

    /**
     * 获取省份
     *
     * @return ra_province - 省份
     */
    public String getRaProvince() {
        return raProvince;
    }

    /**
     * 设置省份
     *
     * @param raProvince 省份
     */
    public void setRaProvince(String raProvince) {
        this.raProvince = raProvince;
    }

    /**
     * 获取市
     *
     * @return ra_city - 市
     */
    public String getRaCity() {
        return raCity;
    }

    /**
     * 设置市
     *
     * @param raCity 市
     */
    public void setRaCity(String raCity) {
        this.raCity = raCity;
    }

    /**
     * 获取详细地址
     *
     * @return ra_detailedAddress - 详细地址
     */
    public String getRaDetailedaddress() {
        return raDetailedaddress;
    }

    /**
     * 设置详细地址
     *
     * @param raDetailedaddress 详细地址
     */
    public void setRaDetailedaddress(String raDetailedaddress) {
        this.raDetailedaddress = raDetailedaddress;
    }

    /**
     * 获取收件人
     *
     * @return ra_recipient - 收件人
     */
    public String getRaRecipient() {
        return raRecipient;
    }

    /**
     * 设置收件人
     *
     * @param raRecipient 收件人
     */
    public void setRaRecipient(String raRecipient) {
        this.raRecipient = raRecipient;
    }

    /**
     * 获取联系号码
     *
     * @return ra_phone - 联系号码
     */
    public Long getRaPhone() {
        return raPhone;
    }

    /**
     * 设置联系号码
     *
     * @param raPhone 联系号码
     */
    public void setRaPhone(Long raPhone) {
        this.raPhone = raPhone;
    }

    /**
     * 获取默认状态 0为默认 1非
     *
     * @return ra_defaultStatus - 默认状态 0为默认 1非
     */
    public Integer getRaDefaultstatus() {
        return raDefaultstatus;
    }

    /**
     * 设置默认状态 0为默认 1非
     *
     * @param raDefaultstatus 默认状态 0为默认 1非
     */
    public void setRaDefaultstatus(Integer raDefaultstatus) {
        this.raDefaultstatus = raDefaultstatus;
    }

    @Override
    public String toString() {
        return "ReceiveAddress{" +
                "raAddressid=" + raAddressid +
                ", raUserid=" + raUserid +
                ", raProvince='" + raProvince + '\'' +
                ", raCity='" + raCity + '\'' +
                ", raDetailedaddress='" + raDetailedaddress + '\'' +
                ", raRecipient='" + raRecipient + '\'' +
                ", raPhone=" + raPhone +
                ", raDefaultstatus=" + raDefaultstatus +
                '}';
    }
}